<div id="events">


  <g:each in="${eventList}" var="event">
  <g:if test="${event.eventType == Event.EVENT_TYPE_POST_GROW}">
  <div class="event">
    <div class="icon">
      <img width="16" alt="记录" src="http://img.kaixin001.com.cn/i/record/icon_jl4.gif"/>
    </div>
    <div style="width: 400px" class="eventC">
      <div>
        <a class="sl" href="${createLink(controller:'b', action:'show', id:event.baby.id)}">
          ${event.baby.realName}
        </a>
        记录道:
      </div>
      <div>
        <img src="http://www.kaixin001.com/i/sy_dt_yh1.gif"/>
        ${event.title}
        <img src="http://www.kaixin001.com/i/sy_dt_yh2.gif"/>
        <a class="sl" href="${createLink(controller:'b', action:'show', id:event.baby.id)}">
          回应
        </a>
      </div>
    </div>
    <div class="eventD">
      <g:formatDate date="${event.dateCreated}" format="yyyy-MM-dd HH:mm"/>
    </div>
    <div class="clear">
    </div>
  </div>
  </g:if>
    
  <g:if test="${event.eventType == Event.EVENT_TYPE_POST_EXPERIENCE}">
  <div class="event">
    <div class="icon">
      <img width="16"  src="http://www.kaixin001.com/i/sy_dt_rj.gif"/>
    </div>
    <div style="width: 400px" class="eventC">
      <div>
        <a class="sl" href="${createLink(controller:'b', action:'show', id:event.baby.id)}">
          ${event.baby.realName}
        </a>
        发表了一篇经验心得:
        <g:link controller="experience" action="show" id="${event.param1}">${event.title}</g:link>
      </div>
      <div>
        ${event.content}
        <a class="sl" href="${createLink(controller:'experience', action:'show', id:event.param1)}">
          查看全文
        </a>
      </div>
    </div>
    <div class="eventD">
      <g:formatDate date="${event.dateCreated}" format="yyyy-MM-dd HH:mm"/>
    </div>
    <div class="clear">
    </div>
  </div>
  </g:if>    
    
  </g:each>
  
</div>